package strategy.main.strategy;

/**
 * 满1000减200商品促销策略
 */
public class ReduceStrategy implements IStrategy {
    /**
     * 计算实际价格方法
     *
     * @param consumePrice
     */
    @Override
    public double realPrice(double consumePrice) {
        if (consumePrice >= 1000) {
            return consumePrice - 200;
        } else {
            return consumePrice;
        }
    }
}
